Page({
  data: {
    fei: '',
    feiban: ''
  },
  formsubmit(e) {
    console.log(e)
    let bd = Number(e.detail.value.property)
    let fei = 0
    let feiban = 0
    if (bd <= 10000) {
      fei = 50
    }else if(bd>10000&&bd<=100000){
      fei = (Number(e.detail.value.property)-10000)*0.0025
    }else if(bd>100000&&bd<=200000){
      fei = (Number(e.detail.value.property)-100000)*0.002
    }else if(bd>200000&&bd<=500000){
      fei = (Number(e.detail.value.property)-200000)*0.0015
    }else if(bd>500000&&bd<=1000000){
      fei = (Number(e.detail.value.property)-500000)*0.001
    }else if(bd>1000000&&bd<=2000000){
      fei = (Number(e.detail.value.property)-1000000)*0.0009
    }else if(bd>2000000&&bd<=5000000){
      fei = (Number(e.detail.value.property)-2000000)*0.0008
    }else if(bd>5000000&&bd<=10000000){
      fei = (Number(e.detail.value.property)-5000000)*0.0007
    }else if(bd>10000000&&bd<=20000000){
      fei = (Number(e.detail.value.property)-10000000)*0.0006
    }else if(bd>20000000){
      fei = (Number(e.detail.value.property)-2000000)*0.0005
    }
    
    feiban = fei / 2
    fei = fei.toFixed(2)
    feiban = feiban.toFixed(2)
    this.setData({
      fei, feiban
      // fei: fei,
      // feiban: feiban
    })
    
    
  }
  
  
})